package com.greydawn.TemplatePattern;

import java.util.List;

/**
 * @Author: zhongwr
 * @Create: 2021/12/12 22:41
 * @Version 1.0
 * @Description:
 */
public class Student2 extends Temlpate {

    public Student2(String name) {
        this.name = name;
    }

    @Override
    protected void printAnswer(List<String> ans) {
        System.out.println(name + ":");
        StringBuilder sb = new StringBuilder();
        for (String an : ans) {
            sb.append(changeABCTo123(an));
            sb.append(" ");
        }
        System.out.println(sb.toString());
    }
}
